<?php
/**
 * Created by PhpStorm.
 * User: R.Ice
 * Date: 2019/3/25
 * Time: 15:27
 * name:新增试听记录
 * url:/erpOrder/add_audition_record
 */

//获取参数
$oao_osid       = $route->bodyParams['oao_osid'];               //试听学员id
$oao_ocid       = $route->bodyParams['oao_ocid'];               //试听课程id
$oao_teacher_id = $route->bodyParams['oao_teacher_id'];         //老师id
$oao_is_used    = $route->bodyParams['oao_is_used'];            //是否已使用 0-否 1-是
$oao_octid      = $route->bodyParams['oao_octid'];              //课时
$oao_sale_id    = $route->bodyParams['oao_sale_id'];            //销售id


//写入数组
$insertArr = [
    'oao_osid'        => $oao_osid,
    'oao_ocid'        => $oao_ocid,
    'oao_teacher_id'  => $oao_teacher_id,
    'oao_is_used'     => $oao_is_used,
    'oao_octid'       => $oao_octid,
    'oao_sale_id'     => $oao_sale_id,
    'oao_create_time' => time(),
];

//执行写入语句
$rsData = $db->mysqlDB->insert("oa_audition_record",$insertArr);

//返回成功结果
$response->responseData( true, $rsData );